get terminal size python

51

python console width -

import os
rows, columns = os.popen('stty size', 'r').read().split()

Comments

Submit
0 Comments